<%@ Reference Control="~/Controls/PagingControl.ascx" %>
<%@ Register tagprefix="Pager" Tagname="DataGridPager" Src="Controls/PagingControl.ascx" %>
<%@ Page language="vb" EnableViewStateMac="true" Inherits="_2bMatesSite.friends_list" CodeFile="friends_list.aspx.vb" CodeFileBaseClass="_2bMatesSite.BaseWebPage" %>
<form id="Form1" method="post" runat="server">
	<table border="0" cellpadding="0" cellspacing="0" width="100%" align="center" height="100%">
		<tr>
			<td class="page_title"><asp:literal id="litFirstName" runat="server"></asp:literal>'s Friends: (<font class="dynamic_number"><asp:literal id="litFriendsCount" runat="server"></asp:literal></font>)</td>
		</tr>
		<tr>
			<td valign="top" width="100%" height="100%" class="main_table_border">
				<div class="content">
				<table border="0" cellpadding="0" cellspacing="0" width="100%" class="main_text">
					<tr>
						<td vAlign="top">
							<asp:Label id="lblNoFriends" runat="server" Visible="False">You have not registered any friends yet. By adding friends you will be able to meet new people and use all the features of 2Bmates.</asp:Label>
							<asp:Table id="tblFriends" runat="server" width="100%">
								<asp:TableRow VerticalAlign="Top">
									<asp:TableCell VerticalAlign="Top">
										<table cellspacing="0" cellpadding="0" width="100%" border="0">
											<tr>
												<td valign="top" align="left" class="small"><Pager:DataGridPager runat="server" ID="dgPagerUp"></Pager:DataGridPager></td>
											</tr>
											<tr>
												<td height="8" class="small">&nbsp;</td>
											</tr>
											<tr>
												<td align="left">
													<asp:DataList runat="server" Width="100%" ShowFooter="False" BorderWidth="0px" ShowHeader="False" HorizontalAlign="Left" CssClass="data_list" RepeatDirection="Horizontal" ID="dlAllFriends"  CellPadding="0">
														<itemstyle width="12%" verticalalign="Bottom"></ItemStyle>
														<itemtemplate>
															<table cellspacing="0" cellpadding="0" border="0">
																<tr>
																	<td align="center"><asp:LinkButton id=lbName runat="server" cssclass="main_text_bold" Text='<%# DataBinder.Eval(Container.DataItem, "Name") %>' CommandName="MemberRedirect" CommandArgument='<%# DataBinder.Eval(Container.DataItem, "FriendID") %>' ></asp:LinkButton></td>
																</tr>
																<tr>
																	<td valign="top" align="center" height="100" class="small">
																		<asp:imagebutton id=imgPhoto runat="server" CssClass="small_image" ImageUrl='<%# DataBinder.Eval(Container.DataItem, "ImageURL") %>' CommandName="MemberRedirect" CommandArgument='<%# DataBinder.Eval(Container.DataItem, "FriendID") %>' ToolTip='<%# DataBinder.Eval(Container.DataItem, "FullName") %>'></asp:imagebutton><br />
																		<img src="images/spacer.gif" height="3" width="1"><br />
																		<asp:image id=imgOnline runat="server" ImageUrl='<%# DataBinder.Eval(Container.DataItem, "OnlineImg") %>'></asp:image>
																	</td>
																</tr>
																<tr>
																	<td valign="middle" align="center" height="20"><asp:LinkButton id=lbRecommend runat="server" cssclass="main_text_bold" CausesValidation="False" Visible='<%# DataBinder.Eval(Container.DataItem, "RecommendLinkVisibility") %>' CommandArgument='<%# DataBinder.Eval(Container.DataItem, "FriendID") %>' CommandName="Recommend">Recommend</asp:LinkButton></td>
																</tr>
															</table>
														</ItemTemplate>
														<itemstyle horizontalalign="Left" verticalalign="Top"></ItemStyle>
													</asp:DataList>
												</td>
											</tr>
											<tr>
												<td height="8" class="small">&nbsp;</td>
											</tr>
											<tr>
												<td valign="top" align="left" class="small"><Pager:DataGridPager runat="server" ID="dgPager"></Pager:DataGridPager></td>
											</tr>											
										</table>
									</asp:TableCell>
								</asp:TableRow>
							</asp:Table>
						</td>
					</tr>
					<tr>
						<td vAlign="top" align="right"><br /><asp:textbox runat="server" height="1px" width="1px" id="txtStartIndexHidden" style="display: none;">0</asp:textbox><asp:textbox runat="server" height="1px" width="1px" id="txtFriendsCountHidden" style="display: none;">0</asp:textbox>
							<asp:Image runat="server" ImageAlign="AbsMiddle" ID="imgAddFriends" ImageUrl="../images/add_friends.gif"></asp:Image>
							<asp:LinkButton runat="server" ID="lbAddFriends" cssclass="main_text_bold" onclick="lbAddFriends_Click">Add Friends</asp:LinkButton>
							&nbsp;&nbsp;&nbsp;
							<asp:Image runat="server" ImageAlign="AbsMiddle" ID="imgEditFriends" ImageUrl="../images/edit_friends.gif"></asp:Image>
							<asp:LinkButton runat="server" ID="lbEditFriends" cssclass="main_text_bold" onclick="lbEditFriends_Click">Edit Friends</asp:LinkButton>
						</td>
					</tr>
				</table>
				</div>
			</td>
		</tr>
	</table>
</form>
